package com.xbhog.transaction;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @author 衣立君
 * @date 2024/03/13 10:08
 **/
public interface Transaction {

    Connection getConnection() throws SQLException;

    void commit() throws SQLException;

    void rollback() throws SQLException;

    void close() throws SQLException;


}
